package com.lxb.vioce.view;

import android.widget.ImageView;

import com.lxb.vioce.R;
import com.lxb.vioce.base.BaseActivity;

import org.xutils.image.ImageOptions;
import org.xutils.view.annotation.ContentView;
import org.xutils.view.annotation.ViewInject;
import org.xutils.x;

/**
 * Created by dell on 2017/3/15.
 */
@ContentView(R.layout.activity_other)
public class OtherActivity extends BaseActivity {
    @ViewInject(R.id.speechImg)
    ImageView speechImg;
    @Override
    protected void initView() {
        // 设置加载图片的参数
        ImageOptions options = new ImageOptions.Builder()
                // 是否忽略GIF格式的图片
                .setIgnoreGif(false)
                // 图片缩放模式
                .setImageScaleType(ImageView.ScaleType.CENTER_INSIDE)
                // 得到ImageOptions对象
                .build();
        x.image().bind(speechImg, "assets://voice_gif.gif", options);
    }

    @Override
    protected void initData() {

    }
}
